package com.chenxin.system.service.impl;

import java.util.List;

import com.chenxin.system.domain.vo.WmsLogVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.chenxin.system.mapper.WmsLogMapper;
import com.chenxin.system.domain.WmsLog;
import com.chenxin.system.service.IWmsLogService;

/**
 * 作业日志Service业务层处理
 *
 * @author gry
 * @date 2025-04-12
 */
@Service
public class WmsLogServiceImpl implements IWmsLogService {
    @Autowired
    private WmsLogMapper logMapper;

    /**
     * 查询作业日志
     *
     * @param logId 作业日志主键
     * @return 作业日志
     */
    @Override
    public WmsLog selectLogByLogId(Long logId) {
        return logMapper.selectById(logId);
    }

    /**
     * 查询作业日志列表
     *
     * @param log 作业日志
     * @return 作业日志
     */
    @Override
    public List<WmsLogVo> selectLogList(WmsLogVo log) {
        return logMapper.selectLogViewList(log);
    }

    @Override
    public int insertWmsLog(WmsLog log) {
        return logMapper.insertLog(log);
    }
}
